import axios from 'axios'

const API_URL = 'http://localhost:8080/api/auth' // 后端接口地址

export default {
    login(username, password) {
        return axios.post('http://localhost:8080/user/login', {
            userName: username,
            password: password
        })
    },
    register(username, password) {
        return axios.post('http://localhost:8080/user/register', {
            userName: username,
            password: password
        })
    }
}